import request from "@/utils/request";

// 查询用户列表
export function customerList(query) {
  return request({
    url: "/user/listPage",
    method: "get",
    params: query
  });
}

// 用户启用禁用
export function changeUser(data) {
  return request({
    url: "/user/disableUser",
    method: "post",
    data,
  });
}

// 用户余额操作
export function changeBalance(data) {
  return request({
    url: "/user/addBalance",
    method: "post",
    data,
  });
}

// 用户等级列表
export function userLevelList(data) {
  return request({
    url: "/userLevel/page",
    method: "get",
    data,
  });
}

// 用户冻结资金
export function userFreezeData(query) {
  return request({
    url: "/freeze/page",
    method: "get",
    params: query
  });
}

// 用户余额流水
export function userWalletData(query) {
  return request({
    url: "/balance/page",
    method: "get",
    params: query
  });
}

// 用户等级更改
export function changeLevel(data) {
  return request({
    url: "/user/upUserLevel",
    method: "post",
    data
  });
}